﻿using System;

namespace Dimebrain.TweetSharp.Model
{
    /// <summary>
    /// Class representing an attachment to a yammer message
    /// </summary>
    [Serializable]
    public class YammerAttachment : PropertyChangedBase, IYammerModel
    {
        /// <summary>
        /// Gets or sets the type of attachment
        /// </summary>
        /// <value>The type.</value>
        public YammerAttachmentType Type { get; set; }
        /// <summary>
        /// Gets or sets the id of the attachment.
        /// </summary>
        /// <value>The id.</value>
        public long Id { get; set; }
        /// <summary>
        /// Gets or sets the name of the attachment
        /// </summary>
        /// <value>The name of the attachment.</value>
        public string Name { get; set; }
        /// <summary>
        /// Gets or sets the web URL for the attachment
        /// </summary>
        /// <value>The web URL.</value>
        public string WebUrl { get; set; }
        /// <summary>
        /// Gets or sets the content of the attachment.
        /// </summary>
        /// <value>The content.</value>
        public YammerAttachmentContent Content { get; set; }
        /// <summary>
        /// Gets or sets the size of the attachment
        /// </summary>
        /// <value>The size.</value>
        public long Size { get; set; }
    }
}